package cn.good.yan.mapper;

import cn.good.yan.pojo.Emp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * EMP 实体 Mapper层
 */
@Repository
public interface EmpMapper extends BaseMapper<Emp> {

    // 自定义SQL
    List<Emp> selectByDid(Integer did);

    // 自定义分页查询
    Page<Emp> selectPageVo(@Param("page") Page<Emp> page, @Param("age") Integer age);

}




